//Where $file is an instance of Illuminate\Http\UploadFile $extension = $file->getClientOriginalExtension();
$extension = pathinfo(storage_path('/uploads/my_image.jpg'), PATHINFO_EXTENSION);dd($extension);